<?php 
class indexAction extends sfAction{
	public function execute($request){
		$data['pagination']	= array(
				'page'		=> intval($request->getParameter('page', 1)),
				'limit'		=> sfConfig::get('app_limit_faq'),
				'total'		=> Faqs::getIndexCount(),
				'router'	=> 'faq',
				'params'	=> array()
		);
		$data['faqs']	= Faqs::getIndex($data['pagination']);
		$this->setVar('data', $data);
	}
}